﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>Anders Liu's Regex Tester</title>
	<link rel="stylesheet" rev="stylesheet" type="text/css" href="default.css" media="all" />
</head>
<body>
	<form id="form1" runat="server">
		<div id="divContainer">
			<div id="divIntroduction">
				<h1>
					Welcome to Anders Liu's .NET Regex Tester</h1>
			</div>
			<div id="divParameters">
				<h2>
					Parameters</h2>
				<h3>
					Regex:</h3>
				<p class="description">
					Input the regex to be tested here.</p>
				<p class="parameters"><asp:TextBox ID="txtRegex" runat="server" TextMode="MultiLine" CssClass="multiline-input"></asp:TextBox></p>
				<h3>
					Text:</h3>
				<p class="description">
					Input the text to be matched here.</p>
				<p class="parameters"><asp:TextBox ID="txtText" runat="server" TextMode="MultiLine" CssClass="multiline-input"></asp:TextBox></p>
				<h3>
					Options</h3>
				<p class="description">
					Selet the RegexOptions parameters here.</p>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<th class="table-header">
							Check</th>
						<th class="table-header">
							Option</th>
					</tr>
					<tr>
						<td class="table-check-cell">
							<asp:CheckBox ID="chkCultureInvariant" runat="server" /></td>
						<td class="table-option-cell">
							CultureInvariant</td>
					</tr>
					<tr>
						<td class="table-check-cell">
							<asp:CheckBox ID="chkExplicitCapture" runat="server" /></td>
						<td class="table-option-cell">
							ExplicitCapture</td>
					</tr>
					<tr>
						<td class="table-check-cell">
							<asp:CheckBox ID="chkIgnoreCase" runat="server" /></td>
						<td class="table-option-cell">
							IgnoreCase</td>
					</tr>
					<tr>
						<td class="table-check-cell">
							<asp:CheckBox ID="chkIgnorePatternWhitespace" runat="server" /></td>
						<td class="table-option-cell">
							IgnorePatternWhitespace</td>
					</tr>
					<tr>
						<td class="table-check-cell">
							<asp:CheckBox ID="chkMultiline" runat="server" /></td>
						<td class="table-option-cell">
							Multiline</td>
					</tr>
					<tr>
						<td class="table-check-cell">
							<asp:CheckBox ID="chkRightToLeft" runat="server" /></td>
						<td class="table-option-cell">
							RightToLeft</td>
					</tr>
					<tr>
						<td class="table-check-cell">
							<asp:CheckBox ID="chkSingleline" runat="server" /></td>
						<td class="table-option-cell">
							Singleline</td>
					</tr>
				</table>
				<asp:Button ID="btnTest" runat="server" CssClass="button" Text="Test" OnClick="btnTest_Click" />
			</div>
			<div id="divResult">
				<h2>
					Result</h2>
				<asp:Label ID="lblResult" runat="server"></asp:Label>
			</div>
			<div id="divFooter">
			<p class="copyright">copyright &copy; Anders Liu, 2007</p>
			<p class="contact"><a href="mailto:lyb.net@gmail.com" title="If you have any questions and suggestions, click here to send mail to 'lyb.net@gmail.com'">Contact Me</a></p>
			</div>
		</div>
	</form>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2379233-1";
urchinTracker();
</script>
</body>
</html>
